package io.finer.erp.jeecg.finance.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 付款表
 * @Author: jeecg-boot
 * @Date:   2021-03-22
 * @Version: V1.0
 */
@Data
@TableName("fina_payment")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="fina_payment对象", description="付款表")
public class FinaPayment implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**供应商*/
	@Excel(name = "供应商", width = 15)
    @ApiModelProperty(value = "供应商")
    private java.lang.String supplierName;
	/**供应商id*/
	@Excel(name = "供应商id", width = 15)
    @ApiModelProperty(value = "供应商id")
    private java.lang.String supplierId;
	/**账单类型*/
	@Excel(name = "账单类型", width = 15)
    @ApiModelProperty(value = "账单类型")
    @Dict(dicCode = "billType")
    private java.lang.String billType;
	/**金额*/
	@Excel(name = "金额", width = 15)
    @ApiModelProperty(value = "金额")
    private java.math.BigDecimal price;
    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
    /**是否开票*/
    @Excel(name = "是否开票", width = 15)
    @ApiModelProperty(value = "是否开票")
    private java.math.BigDecimal isBill;
    /**采购入货单编号*/
    @Excel(name = "采购入货单编号", width = 15)
    @ApiModelProperty(value = "采购入货单编号")
    private java.lang.String billNo;
    /**开票金额*/
    @Excel(name = "开票金额", width = 15)
    @ApiModelProperty(value = "开票金额")
    private BigDecimal invoicePrice;
    /**未开票金额*/
    @Excel(name = "未开票金额", width = 15)
    @ApiModelProperty(value = "未开票金额")
    private BigDecimal noneInvoicePrice;
    /**单据编号*/
    @Excel(name = "单据编号", width = 15)
    @ApiModelProperty(value = "单据编号")
    private java.lang.String code;
    /**核销类型*/
    @Excel(name = "核销类型", width = 15)
    @ApiModelProperty(value = "核销类型")
    @TableField(exist = false)
    private java.lang.String hxType;
    /**核销类型*/
    @Excel(name = "结算方式", width = 15)
    @ApiModelProperty(value = "结算方式")
    @Dict(dicCode = "clearingForm")
    private String clearingForm;
    /**账户id*/
    @Excel(name = "账户id", width = 15)
    @ApiModelProperty(value = "账户id")
    private String accountId;
    /**平账金额*/
    @Excel(name = "折扣金额", width = 15)
    @ApiModelProperty(value = "折扣金额")
    private java.math.BigDecimal discountPrice;
    /**付款时间*/
    @Excel(name = "付款时间", width = 15)
    @ApiModelProperty(value = "付款时间")
    private Date payTime;
    
    //是否自动核销
    @Dict(dicCode = "yn")
    private String isHx;
    
    //支付类型字段
    @TableField(exist = false)
    private String clearingForm_dictText;
    //已核销金额
    @TableField(exist = false)
    private BigDecimal hxPrice;
}
